package main

import (
	"errors"
	"fmt"
	"strings"
)

type userData interface {
	GetName() string
}

func intertest23(userinfo userData) error {
	if userinfo.GetName() == "" {
		return errors.New("username is empty")
	}
	fmt.Println(userinfo.GetName())
	return nil
}

type mockUserDataStore struct {
	pendingError error
	pendingScore int
	deletedUsers []string
}

func (m *mockUserDataStore) GetName() string {
	return "kso custom info :" + strings.Join(m.deletedUsers, ",")
}
